//
//  ViewController.m
//  no2
//
//  Created by admin on 16/9/13.
//  Copyright © 2016年 admin. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIButton *btn;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *av;
@property (weak, nonatomic) IBOutlet UISlider *slider2;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (IBAction)onClink:(id)sender {
    if(_av.isAnimating)
    {
        [_av stopAnimating];
    }
    else
    {
        [_av startAnimating];
    }
}
- (IBAction)anniu:(UISwitch *)sender {
    if(sender.isOn){
        [_av startAnimating];
    }
    else{
        [_av stopAnimating];
    }
}
- (IBAction)onchanged:(UISlider *)sender {
    //_slider2.value = sender.value;
    _slider2.minimumValue = sender.value;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
